package com.infore.siteManagement.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.infore.siteManagement.constant.Constants;
import com.infore.siteManagement.entity.OperCompany;
import com.infore.siteManagement.enums.ResultStatus;
import com.infore.siteManagement.repository.IOperCompanyRepository;
import com.infore.siteManagement.service.IOperCompanyService;
import com.infore.siteManagement.util.ResultEntity;

@Service
public class OperCompanyServiceImpl implements IOperCompanyService{

	@Autowired
	private IOperCompanyRepository iOperCompanyRepository;
	
	public ResultEntity queryAll() {
		List<OperCompany> list = iOperCompanyRepository.findAll();
		return new ResultEntity(ResultStatus.SUCCESS,Constants.QUERY_SUCCESS).setDataList(list);
	}

}
